package com.vodone.v1pin.help.vo
{
	import mx.collections.ArrayCollection;

	public class HelpItemVO
	{
		public function HelpItemVO( obj:Object = null )
		{
			if( null != obj )
			{
				parseData( obj );
			}
		}
		
		private function parseData( obj:Object ):void
		{
			if( obj.hasOwnProperty("helpID"))
			{
				this.id = obj["helpID"];
			}
			if( obj.hasOwnProperty("helpTitle") )
			{
				this.title = obj["helpTitle"];
			}
			if( obj.hasOwnProperty("helpContent") )
			{
				this.content = obj["helpContent"];
			}
			if( obj.hasOwnProperty("helpImg") )
			{
				this.helpImg = obj["helpImg"];
			}
			if( obj.hasOwnProperty("meno") )
			{
				this.meno = obj["meno"];
			}
			if( obj.hasOwnProperty("list") )
			{
				var temp:Array = obj["list"] as Array;
				this.list = new ArrayCollection();
				for( var i:int = 0;i<temp.length;i++ ){
					var item:HelpItemVO = new HelpItemVO( temp[i] );
					this.list.addItem( item );
				}
			}
		}
		public var id:String;
		public var title:String;
		public var content:String;
		public var meno:String;
		public var list:ArrayCollection;
		public var helpImg:String;
		
	}
}